package demo6;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
//@Scope("prototype") 多例

@Scope("singleton")  //单例
public class DBConnection {

}
